package com.xuanxing123.service.impl;

import com.xuanxing123.dao.ProductTypeDao;
import com.xuanxing123.model.ProductType;
import com.xuanxing123.service.ProductTypeManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("productTypeManager")
public class ProductTypeManagerImpl extends GenericManagerImpl<ProductType, Long> implements ProductTypeManager {
    ProductTypeDao productTypeDao;

    @Autowired
    public ProductTypeManagerImpl(ProductTypeDao productTypeDao) {
        super(productTypeDao);
        this.productTypeDao = productTypeDao;
    }

    /**
     * {@inheritDoc}
     */
    public List<ProductType> getAll()
    {
        return productTypeDao.getAll();
    }
}